package com.example.boos.pojo;


import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

public class Orders implements Serializable {
    private Integer id;
    private Integer userAddressId;
    private Timestamp startTime;
    private Timestamp endTime;
    private Float deliveryFee;
    private Float totalPrice;
    private String remark;
    private Integer userStatus;
    private Integer storeStatus;
    private Integer riderStatus;
    private Integer userId;
    private Integer storeId;
    private Integer riderId;
    private String foodIdList; // 也要记录 数量
    private List<Food> _foodList; // 将菜品 集合
    private UserAddress userAddress;
    private StoreAddress storeAddress;
    private Store store;

    public StoreAddress getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(StoreAddress storeAddress) {
        this.storeAddress = storeAddress;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }

    public UserAddress getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(UserAddress userAddress) {
        this.userAddress = userAddress;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", userAddressId=" + userAddressId +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", deliveryFee=" + deliveryFee +
                ", totalPrice=" + totalPrice +
                ", remark='" + remark + '\'' +
                ", userStatus=" + userStatus +
                ", storeStatus=" + storeStatus +
                ", riderStatus=" + riderStatus +
                ", userId=" + userId +
                ", storeId=" + storeId +
                ", riderId=" + riderId +
                ", foodList='" + foodIdList + '\'' +
                ", _foodList=" + _foodList +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserAddressId() {
        return userAddressId;
    }

    public void setUserAddressId(Integer userAddressId) {
        this.userAddressId = userAddressId;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public Float getDeliveryFee() {
        return deliveryFee;
    }

    public void setDeliveryFee(Float deliveryFee) {
        this.deliveryFee = deliveryFee;
    }

    public Float getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Integer getStoreStatus() {
        return storeStatus;
    }

    public void setStoreStatus(Integer storeStatus) {
        this.storeStatus = storeStatus;
    }

    public Integer getRiderStatus() {
        return riderStatus;
    }

    public void setRiderStatus(Integer riderStatus) {
        this.riderStatus = riderStatus;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getRiderId() {
        return riderId;
    }

    public void setRiderId(Integer riderId) {
        this.riderId = riderId;
    }

    public String getFoodIdList() {
        return foodIdList;
    }

    public void setFoodIdList(String foodList) {
        this.foodIdList = foodList;
    }

    public List<Food> get_foodList() {
        return _foodList;
    }

    public void set_foodList(List<Food> _foodList) {
        this._foodList = _foodList;
    }
}
